/* 获取当前文件夹内所有store进行合并 */
import { createStore } from 'vuex'
const modulesFiles = import.meta.globEager('./*.ts')
const stores = {}

for (const path in modulesFiles) {
  const name = path.substring(2, path.lastIndexOf('.'))

  Object.assign(stores, { [ name ]: modulesFiles[ path ].default })
}
export default createStore<any>({
  modules: stores
})
